package tunafish2k.rpgex.items;

import net.fabricmc.fabric.api.itemgroup.v1.ItemGroupEvents;
import net.minecraft.item.Item;
import net.minecraft.item.ItemGroups;
import tunafish2k.rpgex.registries.ItemRegistry;

public class ItemGroupManager {
    public static final Item[] combatGroup = {
            ItemRegistry.BLOW_PIPE,
            ItemRegistry.STONE_DART
    };

    public static void addAll() {
        for (int i = 0; i < combatGroup.length; i++) {
            Item obj = combatGroup[i];
            ItemGroupEvents.modifyEntriesEvent(ItemGroups.COMBAT).register(content -> {
                content.add(obj);
            });
        }
    }
}
